package dao;


import com.ibatis.dao.client.DaoManager;

public class DAOHelper {

	private static final DaoManager mgr = DaoConfig.getDaoManager();
	private static final Class ADDRESS = AddressDAO.class;
	private static final Class NEW = NewDAO.class;
	private static final Class DELETE = DeleteDAO.class;
	private static final Class DEDAIL = DetailDAO.class;
	private static final Class UPDATE = UpdateDAO.class;
	public static AddressDAO getAddressDAO(){
		return (AddressDAO)mgr.getDao(ADDRESS);
	}


	public static NewDAO getNewDAO() {
		return (NewDAO)mgr.getDao(NEW);
	}

	public static DeleteDAO getDeleteDAO() {
		return (DeleteDAO)mgr.getDao(DELETE);
	}
	public static DetailDAO getDetailDAO() {
		return (DetailDAO)mgr.getDao(DEDAIL);
	}
	public static UpdateDAO getUpdateDAO() {
		return (UpdateDAO)mgr.getDao(UPDATE);
	}

}
